using UnityEngine;

public class ChoseObjectByMouse : MonoBehaviour
{
    private HighlightableObject ho;

    private void Start()
    {
        ho = GetComponent<HighlightableObject>();
    }

    private void OnMouseEnter()
    {
        ho.ConstantOn(Color.white);
    }

    private void OnMouseExit()
    {
        ho.ConstantOff();
    }
}
